package face.pay.api.wechat.api;

import face.pay.api.payter.WeChatPayTerminal;
import face.pay.util.ResultMessage;
import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.stereotype.Controller;
import org.springframework.web.bind.annotation.RequestBody;
import org.springframework.web.bind.annotation.RequestMapping;
import org.springframework.web.bind.annotation.ResponseBody;

/**
 * @Auther: cjj
 * @Date: 2019/9/10
 * @Description:
 */

@Controller
@RequestMapping("/wxQrpay/api/")
public class ApiWxQrPay {

    @Autowired
    WeChatPayTerminal weChatPayTerminal;

    @RequestMapping("/payorder")
    @ResponseBody
    public ResultMessage payface(@RequestBody String dataJson){

        return weChatPayTerminal.qrPay(dataJson);
    }
}
